/*
 * 铁路道岔故障检测信息管理系统
 * Design by 魏梓晟
 * Version :1.0
 */
package com.railway.switchs.domain.dto.authority;

import java.io.Serializable;
import java.util.List;

import com.railway.switchs.domain.pojo.authority.AuthorityPermissionPojo;
import com.railway.switchs.enums.EnumPermissionType;
import com.railway.switchs.utils.StringUtil;
import lombok.Data;
/**
 * authority_permission - 资源表 实体类
 * 
 * @author 魏梓晟
 */
@Data
public class AuthorityPermission extends AuthorityPermissionPojo implements Serializable {

    private static final long serialVersionUID = 1L;
	
	public AuthorityPermission(){

    }

    public AuthorityPermission(Long id){
        this.setId(id);
    }

    private String permissionTypeDesc;

	public String getPermissionTypeDesc(){
        if(StringUtil.isEmpty(getPermissionType())){
            return "";
        }
        return EnumPermissionType.getName(getPermissionType());
    }

    private Long treePid;

    private List<AuthorityPermission> childPermissons;

}
